package com.mxz.manage.serviceimpl;


import com.alibaba.dubbo.config.annotation.Service;
import com.mxz.manage.dao.UserMapper;
import com.mxz.manage.pojo.User;
import com.mxz.manage.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * author : yulong
 * time : 2018-05-08 02:16
 */
@Service
public class UserSImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> getAll() {

        List<User> list = userMapper.getAll();

        System.out.println("服务端读取到数据：" + list);

        return list;
    }
}
